package com.ruoyi.mes.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备维修对象 device_repair_info
 *
 * @author LongAndHao
 * @date 2023-09-27
 */
public class DeviceRepairInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 设备id */
    private Long deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 维修人员 */
    @Excel(name = "维修人员")
    private String repairPerpson;

    /** 维修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairDate;

    /** 维修类型 0 - 预防性维护 1 -故障修复 2- 设备更换 */
    @Excel(name = "维修类型 0 - 预防性维护 1 -故障修复 2- 设备更换")
    private Integer repairType;

    /** 维修描述 */
    @Excel(name = "维修描述")
    private String repairDescription;

    /** 维修费用 */
    @Excel(name = "维修费用")
    private BigDecimal repairCost;

    /** 维修结果 0 - 无法修复 1 - 部分修复  2 -修复成功 */
    @Excel(name = "维修结果 0 - 无法修复 1 - 部分修复  2 -修复成功")
    private Integer repairResult;

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setRepairPerpson(String repairPerpson)
    {
        this.repairPerpson = repairPerpson;
    }

    public String getRepairPerpson()
    {
        return repairPerpson;
    }
    public void setRepairDate(Date repairDate)
    {
        this.repairDate = repairDate;
    }

    public Date getRepairDate()
    {
        return repairDate;
    }
    public void setRepairType(Integer repairType)
    {
        this.repairType = repairType;
    }

    public Integer getRepairType()
    {
        return repairType;
    }
    public void setRepairDescription(String repairDescription)
    {
        this.repairDescription = repairDescription;
    }

    public String getRepairDescription()
    {
        return repairDescription;
    }
    public void setRepairCost(BigDecimal repairCost)
    {
        this.repairCost = repairCost;
    }

    public BigDecimal getRepairCost()
    {
        return repairCost;
    }
    public void setRepairResult(Integer repairResult)
    {
        this.repairResult = repairResult;
    }

    public Integer getRepairResult()
    {
        return repairResult;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("repairPerpson", getRepairPerpson())
            .append("repairDate", getRepairDate())
            .append("repairType", getRepairType())
            .append("repairDescription", getRepairDescription())
            .append("repairCost", getRepairCost())
            .append("repairResult", getRepairResult())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
